Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markunknown sent with translateDoc interface #180

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

share-with-me
Copy link
Contributor

Fix #160

$('div#docTranslation').fadeIn('fast');
$('#detect, #srcLangSelect option[value=detect]').prop('disabled', true);
});
$('#translateText > *:not(#translateOptionsContainer), #translateOptions > *:not(#markUnknownContainer')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this selector is missing a closing paren.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Felt like I closed it with the paren outside. Added :D

@sushain97
Copy link
Member

sushain97 commented Aug 5, 2017

image

This ends up looking really strange. The option should be in a similar position to where it is usually located. Maybe messing with visibility instead of display could work.

Copy link
Member

@sushain97 sushain97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment

@share-with-me
Copy link
Contributor Author

@sushain97 , Um, would it make sense to simply add a CSS of margin-top to the checkbox? Tried quite a bit messing around with visibility and display attributes, but the way the divs are arranged, they really are taking up weird places when I use the above attributes on them!

@sushain97
Copy link
Member

@sushain97 , Um, would it make sense to simply add a CSS of margin-top to the checkbox?

Then it'll be too low when a file gets translated?

@share-with-me
Copy link
Contributor Author

@sushain97 , position set as required. Please have a look.

screenshot from 2017-08-10 20-41-42

@sushain97
Copy link
Member

sushain97 commented Aug 10, 2017 via email

@share-with-me
Copy link
Contributor Author

I am preserving its position wrt to the translation interface. Thus, I am adding a top margin equivalent to the height of translatedText div. It looks very much at the bottom because of the relatively smaller height of docTranslation div and the absence of Instant Translation checkbox. What do you suggest its ideal height should be? I felt keeping it at the height where docTranslation ends would make more sense. Should I change it to that?

@sushain97
Copy link
Member

sushain97 commented Aug 10, 2017 via email

Copy link
Member

@sushain97 sushain97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, apparently these comments never went through...

$('#fileInput').show();
$('div#fileName').hide();
$('div#docTranslation').fadeIn('fast');
$('#markUnknownContainer').css('margin-top', '200px');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoding pixel values isn't a great approach. Is there any other method of handling this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants